package cn.iocoder.yudao.module.crm.controller.admin.importtask.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 导入任务分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ImportTaskPageReqVO extends PageParam {

    @Schema(description = "任务状态", example = "1")
    private Integer status;

    @Schema(description = "任务类型", example = "1")
    private Integer bizType;

    @Schema(description = "所属模块", example = "1206")
    private Long moduleId;

    @Schema(description = "是否公海")
    private Integer pool;

    @Schema(description = "文件路径")
    private String filePath;

    @Schema(description = "文件名", example = "芋艿")
    private String fileName;

    @Schema(description = "重复字段校验")
    private String repeatField;

    @Schema(description = "重复时的操作")
    private Integer repeatHandle;

    @Schema(description = "数据总量", example = "25853")
    private Integer dataCount;

    @Schema(description = "插入数量", example = "7814")
    private Integer insertCount;

    @Schema(description = "更新数量", example = "16698")
    private Integer updateCount;

    @Schema(description = "失败数量", example = "23902")
    private Integer failCount;

    @Schema(description = "完成时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] finishTime;

    @Schema(description = "错误描述")
    private String errorMsg;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}